package com.bjsdzk.collector.constant;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class Constant {
	public static final String CMD_106_READ = "010380000055AC35";
	public static final String DATE_117 = "2018-10-10 00:00:00";
	public static final String CLEAN_106 = "1000250001020000";
	public static final String RESET_106 = "1000240001020000";
	public static final String DTU_CLEAN_106 = "1000250001020000";
	public static final String DTU_RESET_106 = "1000240001020000";
	public static final String DTU_CLEAN_117 = "1000040001020001";
	public static final String DTU_RESET_117 = "1000030001020001";
	public static final String DTU_BEFORE_117 = "68F0";
	public static final String DTU_CLEAN_173 = "060003F096";
	public static final String DTU_RESET_173 = "060002F096";
	public static final String DTU_CHECK_173 = "060004F096";
	//public static final String ZHOGNHUISTART = "1A011111111111111111031400020010000025800B00";
	public static final String ZHOGNHUISTART = "1A011111111111111111031400020000802500000B00";
//	public static final List<String> LISTTYPE_173 = Arrays.asList("温度1", "温度2", "温度3", "温度4", "剩余电流1", "剩余电流2", "剩余电流3",
//			"剩余电流4", "剩余电流5", "剩余电流6", "剩余电流7", "剩余电流8", "剩余电流9");
	public static final List<String> LISTTYPE_173 = Arrays.asList("type1", "type2", "type3", "type4", "type5", "type6", "type7",
			"type8", "type9", "type10", "type11", "type12", "type13");
	public static final String TEMPERATURE_UNIT_173 = "℃";
	public static final String ELECTRIC_UNIT_173 = "mA";
	
	public static final String TEST_ALERT = "http://192.168.1.154:8081/req/sendMessage";
	public static final String ALERT = "http://123.59.136.8:8081/req/sendMessage";

	public static final String  PRO_SERVER_ADDR= "123-59-136-8-62002";
	public static final String  TEST_SERVER_ADDR= "124-202-228-190-62002";
	//有人网关
	public static final String DTUTYPE_2 = "2";
	public static final Integer DTUTYPE_INT_2 = 2;

	//串口
	public static final String DTUTYPE_6 = "6";
	//双华
	public static final String DTUTYPE_7 = "7";
	//感温
	public static final String DTUTYPE_8 = "8";
	/**卓文*/
	public static final String DTUTYPE_9 = "9";
	public static final String DTUTYPE_10 = "10";
	//乐鸟探测器
	public static final String DTUTYPE_11 = "11";
	//乐鸟断路器
	public static final String DTUTYPE_12= "12";
	//曼顿
	public static final String DTUTYPE_13= "13";
	public static final String DTUTYPE_14= "14";
	public static final String DTUTYPE_15= "15";
	public static final String DTUTYPE_16= "16";
	public static final String DTUTYPE_17= "17";
	/**136*/
	public static final String HARDWARETYPE_51= "51";
	/**102*/
	public static final String HARDWARETYPE_52= "52";
	/**136*/
	public static final String HARDWARETYPE_53= "53";
	/**102*/
	public static final String HARDWARETYPE_54= "54";

	/**136*/
	public static final String HARDWARETYPE_58= "58";
	/**102*/
	public static final String HARDWARETYPE_59= "59";

	public static final String LNCMDTYPE_CONTRL = "control";
	public static final String LNCMDTYPE_GETALL = "getAll";

	public static final  String MONGONAME_REAL ="RealTimeData";

	public static final String DEVICETYPE_117 = "117";
	public static final String DEVICETYPE_106 = "106";
	public static final String DEVICETYPE_116 = "116";
	public static final String DEVICETYPE_GANWEN = "100";

	public static final String MOD_ONLINE_STATUS = "mod.connector.onlineStatus.online";
	public static final String MOD_OFFLINE_STATUS = "mod.connector.onlineStatus.offline";
	public static final String MOD_LATEST = "mod,connector.data.latest";
	public static final String MOD_CALLBACK = "mod.connector.cmd.callback";
	public static final String MOD_START_FAIL = "mod.start.fail";
	public static final String MOD_DEVICE485_FAIL = "mod.device485.fail";
	public static final String MOD_DEVICE_FAIL = "mod.device.fail";
	public static final String MOD_DEVICE_POLICE = "mod.device.police";
	public static final String MOD_DEVICE_CLEANPOLICE = "mod.device.cleanpolice";
    public static final String ONLY_CMD= "only_cmd_";
    public static final String ONLY_CMD_LOCAL= "only_cmd_local";

	public static final String MOD_SEND_SET_MODEL = "mod.send.set.model.";
	public static final String GROUP_PLATFORM = "platform";
	public static final String GROUP_APP= "app";
	public static final String GROUP_BANK= "bank";
	public static final String GROUP_MINIAPP_ELECTRICENGINEER= "miniapp-electricEngineer";

	public static final Map<String, int[]> secretkeys = new ConcurrentHashMap<String, int[]>()
	{
		{
			put("6161", new int[]{0x01, 0x82, 0x74, 0x25, 0x67});
			put("6262", new int[]{0x59, 0x38, 0x13, 0x96, 0x40});
			put("6162", new int[]{0x31, 0x78, 0x94, 0x66, 0x07});
			put("6261", new int[]{0x89, 0x12, 0x23, 0x45, 0x50});
		}
	};
}
